package com.code.day07.Streamsdy;

import java.util.stream.Stream;

public class DemoStream4 {
    public static void main(String[] args) {
        Stream<String>stream = Stream.of("a", "b", "c", "a");
        stream.distinct().forEach(System.out::println);
    }
}
